﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace 继承与多态_接口interface案例
{
    internal abstract class Tank : IFireable,IRunnable
    {
        abstract public void Fire();
        abstract public void MultiFire();
        abstract public void Run();
    }
    class SuperTank : Tank
    {
        override public void Fire()
        {
            Console.WriteLine("Super Tank Fire");
        }
        override public void MultiFire()
        {
            Console.WriteLine("Super Tank MultiFire");
        }
        public override void Run()
        {
            Console.WriteLine("Super Tank Run");
        }
    }
    class HeavyTank : Tank
    {
        override public void Fire()
        {
            Console.WriteLine("HeavyTank Tank Fire");
        }
        override public void MultiFire()
        {
            Console.WriteLine("HeavyTank Tank MultiFire");
        }
        public override void Run()
        {
            Console.WriteLine("HeavyTank Tank Run");
        }
    }
}
